Leetcode 14. Longest Common Prefix Solution Explained - Java